﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Unis.Framework.ORM.BaseDefiniens.Enums;

namespace Unis.ORM.Mapping
{
    public class ModelMappingInfo
    {
        // Fields
        private string _AutoIncreasePorperty;
        private string _ClassName;
        private ModelConfigOptions _ConfigOptions;
        private Type _EntityType;
        private Dictionary<string, FieldPropertyInfo> _FieldPropertys;
        private bool _HasAutoIncreasePorperty;
        private bool _IsMultPrimaryKey;
        private string _MapTable;
        private Dictionary<string, FieldPropertyInfo> _PrimaryKeys;
        private string _XmlConfigFileName;

        // Properties
        public string AutoIncreasePorperty
        {
            get
            {
                return this._AutoIncreasePorperty;
            }
            set
            {
                this._AutoIncreasePorperty = value;
            }
        }

        public string ClassName
        {
            get
            {
                return this._ClassName;
            }
            set
            {
                this._ClassName = value;
            }
        }

        public ModelConfigOptions ConfigOptions
        {
            get
            {
                return this._ConfigOptions;
            }
            set
            {
                this._ConfigOptions = value;
            }
        }

        public Type EntityType
        {
            get
            {
                return this._EntityType;
            }
            set
            {
                this._EntityType = value;
            }
        }

        public Dictionary<string, FieldPropertyInfo> FieldPropertys
        {
            get
            {
                return this._FieldPropertys;
            }
            set
            {
                this._FieldPropertys = value;
            }
        }

        public bool HasAutoIncreasePorperty
        {
            get
            {
                return this._HasAutoIncreasePorperty;
            }
            set
            {
                this._HasAutoIncreasePorperty = value;
            }
        }

        public bool IsMultiPrimaryKey
        {
            get
            {
                return this._IsMultPrimaryKey;
            }
            set
            {
                this._IsMultPrimaryKey = value;
            }
        }

        public string MapTable
        {
            get
            {
                return this._MapTable;
            }
            set
            {
                this._MapTable = value;
            }
        }

        public Dictionary<string, FieldPropertyInfo> PrimaryKeys
        {
            get
            {
                return this._PrimaryKeys;
            }
            set
            {
                this._PrimaryKeys = value;
            }
        }

        public string XmlConfigFileName
        {
            get
            {
                return this._XmlConfigFileName;
            }
            set
            {
                this._XmlConfigFileName = value;
            }
        }
    }
}
